package com.example.t410.dao;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.codecs.pojo.annotations.BsonId;
import org.bson.codecs.pojo.annotations.BsonProperty;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;
import org.springframework.data.mongodb.core.mapping.Field;

@Document("nootBook") //表名称
@Data
@AllArgsConstructor
@NoArgsConstructor
public class NootBook {

    @BsonId //主键
    private String id;

    @BsonProperty("MemoId")
    private Integer MemoId;

    @BsonProperty("Memotext")
    private String Memotext;

    @BsonProperty("Timestamp")
    private Long Timestamp;

    @BsonProperty("userId")
    private String userId;

}
